package com.ycz.pattern.structure.decoratorpattern;

/**
 * @Description
 * @ClassName RedShapeDecorator
 * @Author yanchengzhi
 * @date 2023.11.24 00:38
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("边框颜色：红色");
    }

}
